add a simple usage string to xenconsoled
authorvh249@arcadians.cl.cam.ac.uk <vh249@arcadians.cl.cam.ac.uk>
Sat, 10 Sep 2005 14:44:31 +0000 (14:44 +0000)
committervh249@arcadians.cl.cam.ac.uk <vh249@arcadians.cl.cam.ac.uk>
Sat, 10 Sep 2005 14:44:31 +0000 (14:44 +0000)
Signed-off-by: Vincent Hanquez <vincent@xensource.com>
tools/console/daemon/main.c

index 1df737226a46811014d81e9256b236c148e8838c..178ae792e26eba9d2ed09a98980ab41cb5ce4056 100644 (file)
 #include "utils.h"
 #include "io.h"
 
+void usage(char *prg)
+{
+       fprintf(stderr, 
+               "usage: %s [-h] [-V] [-v] [-i]\n", prg);
+}
+
 int main(int argc, char **argv)
 {
        const char *sopts = "hVvi";
@@ -49,7 +55,7 @@ int main(int argc, char **argv)
        while ((ch = getopt_long(argc, argv, sopts, lopts, &opt_ind)) != -1) {
                switch (ch) {
                case 'h':
-                       //usage(argv[0]);
+                       usage(argv[0]);
                        exit(0);
                case 'V':
                        //version(argv[0]);